package cn.bitkit.mybatis.constants;

import cn.bitkit.mybatis.base.BaseCriteria;
import cn.bitkit.mybatis.criteria.*;
import cn.bitkit.mybatis.criteria.*;
import lombok.AllArgsConstructor;

/**
 * @author changbo
 */
@AllArgsConstructor
public enum Criteria {
    /**
	 * 匹配类型
	 */
	equal("等于", new EqualCriteria()),
	notEqual("不等于", new NotEqualCriteria()),
	like("匹配", new LikeCriteria()),
	leftLike("左匹配", new LeftLikeCriteria()),
	rightLike("右匹配", new RightLikeCriteria()),
	grantThan("大于", new GrantThanCriteria()),
	lessThan("小于", new LessThanCriteria()),
	grantThanEqual("大于等于", new GrantThanEqualCriteria()),
	lessThanEqual("小于等于", new LessThanEqualCriteria()),
	in("包含于", new InCriteria()),
	isNull("等于null", new IsNullCriteria()),
	isNotNull("不等于null", new IsNotNullCriteria()),
	dynamic("动态sql取值", new DynamicCriteria()),
	;
	public final String desc;
	public final BaseCriteria process;
}
